package com.ym.medical.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ym.core.utils.tkmybatis.BaseSVImpl;

import com.ym.medical.dao.SymptomPartDao;
import com.ym.medical.domain.entity.SymptomPartEntity;
import com.ym.medical.domain.param.SymptomPartParam;
import com.ym.medical.service.ISymptomPartSV;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * ComputerName:LAPTOP-I6GKDIFQ
 * Author:admin
 * Date: 2019-06-04
 * Time: 16:16:26
 * 服务实现类
 */
@Service
@Transactional( rollbackFor = Exception.class)
public class SymptomPartSVImpl extends BaseSVImpl<SymptomPartEntity, SymptomPartDao> implements ISymptomPartSV {


    @Override
    public PageInfo<SymptomPartEntity> listSymptomPart(SymptomPartParam symptomPartModel, int pageNo, int limit) {
        PageHelper.startPage(pageNo,limit);
        List<SymptomPartEntity> symptomParts = mapper.listSymptomPart(symptomPartModel);
        return new PageInfo<>(symptomParts);
    }
}
